
<template>

    <div class="uu-layout">
        <div class="uu-layout-aside">
            侧边栏
        </div>
        <div class="uu-layout-main">
            <router-view></router-view>
        </div>
    </div>
</template>
<script>
  export default {
    data() {
      return {
        nav: [
            {
              path: 'home',
              title: '导航一',
              icon: 'el-icon-message',
              children: [
                  {
                      path: 'first',
                      title: '选项4',
                    //   children: [{
                    //       path: 'aaaaa',
                    //       title: '测试'
                    //   }]
                  },
                  {
                      path: 'second',
                      title: '选项5'
                  }
              ]
            },
            {
              path: 'other',
              title: '导航一',
              icon: 'el-icon-menu',
            //   children: [
            //       {
            //           path: 'other-first',
            //           title: '选项5'
            //       }
            //   ]
            },
        ],
        activeName: '/pages/home/first'
      }
    },
    methods: {
        selectNav (name) {
            console.log(name);
            this.$router.push('/' + name);
        }
    }
  };
</script>

<style scoped lang="less">

</style>